var web3 = require('./getWeb3');
var BigNumber = require('bignumber.js');

// 使用回调函数
web3.eth.sendTransaction({
    from: '0x1CC5542937D9d6c398602ff454397fCa21204f23',
	to:  '0x9879D0cC427fCd8FeF80c94c6d0A9E66Bc46F6C9',
	value: web3.eth.utils.toWei('10','ether')
}, function(error, transactionHash){
    if (!err)
      console.log(transactionHash);
});